package org.csu.gp_store.service;

import org.csu.gp_store.bo.CompanyBO;
import org.csu.gp_store.bo.ItemBO;
import org.csu.gp_store.entity.Company;
import org.csu.gp_store.entity.OrderItem;
import org.csu.gp_store.entity.Orders;
import org.jetbrains.annotations.NotNull;

import java.util.List;

public interface CompanyService {
    String companyLogin(@NotNull String account,@NotNull String password);

    int insertNewCompany(Company company);

    int alterCompanyInfo(Company company);

    int addBusiness(ItemBO itemBO);

    //是否接受订单，status为是否接受
    int dealOrder(Long indexID, int status);

    //在接受订单后可以通过沟通取消订单
    int adminCancel(Long orderID, String MSG);

    int cancelCompany(Company company,int status);

    Company getCompanyByEmail(@NotNull String email);

    Company getCompany(Long CompanyID);

    boolean emailExist(@NotNull String email);

    boolean nameExist(@NotNull String name);

    List<OrderItem> getOrdersByCompanyID(@NotNull Long companyID);

    List<OrderItem> getCertainOrder(@NotNull Long companyID,@NotNull Long orderID);
}
